package com.nail.api.customMake.dao;

import com.nail.api.customMake.bean.FileUploadInfo;
import com.nail.dao.IBaseDao;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface IFileUploadDao extends IBaseDao<FileUploadInfo> {

    @Insert("INSERT INTO file_upload_info(file_name, path, user_id,user_name, create_time, modifier, update_time, module, order_id)" +
            " VALUES(#{fileName},#{path},#{userId},#{userName},#{createTime},#{modifier},#{updateTime},#{module},#{orderId})")
    public void insertFileUploadInfo(FileUploadInfo fileUploadInfo);

    @Select("select * from file_upload_info where id in (${ids})")
    public List<FileUploadInfo> getFileUploadInfoByIds(@Param("ids") String ids);

}
